﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="CustomerContactSystem.Core" namespace="CustomerContactSystem.Core.Model">
    <class name="Customer" table="Customers">
        <id name="Id">
            <generator class="native" />
        </id>
        <property name="FirstName" not-null="true" length="100" />
        <property name="SecondName" not-null="true" length="100" />
        <property name="Address1" not-null="true" length="100" />
        <property name="Address2" not-null="false" length="100" />
        <property name="Address3" not-null="false" length="50" />
        <property name="Address4" not-null="false" length="50" />
        <property name="Address5" not-null="false" length="50" />
        <property name="Email" not-null="false" length="250" />
        <property name="Phone" not-null="false" length="50" />
        <property name="Fax" not-null="false" length="50" />
        <property name="CanBeContactedForFeedback" not-null="true" />
        <property name="Flagged" not-null="true" />
    </class>
</hibernate-mapping>